package com.hzgj.bcl.soa.config;

import com.hzgj.bcl.soa.util.Constants;

import java.util.HashMap;
import java.util.Map;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by dell on 2015/3/26.
 */
@Getter
@EqualsAndHashCode
@Setter
public class RegistryDef {

    private String id;
    //逗号分割的字符串
    private String address;
    private String protocol;
    private int timeout = 2;//2s;
    private int ttl = 10;//second
    private int refresh = 9;//second
    private String register;
    private String mode = Constants.NOTIFY_CLIENT_PULL_MODE;//push or pull
    private Map<String, String> parameters = new HashMap<>();
    private String type;
}
